<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户管理</title>
</head>
<body>
<div id="toolbarDemo" style="display: none">
    <div class="layui-btn-container" style="float:left">

    </div>
</div>
<script type="text/html" id="authoritiesTbBar">
</script>
<div class="layui-fluid vue-box">
    <div class="layui-card">
        <div class="layui-card-body">
            <!-- 表格工具栏 -->
            <form class="layui-form toolbar el-form">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">用户名称:</label>
                        <div class="layui-input-inline">
                            <input name="name" class="layui-input" placeholder="用户名称"/>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">手机号码:</label>
                        <div class="layui-input-inline">
                            <input name="mobile" class="layui-input" placeholder="用户名称"/>
                        </div>
                    </div>
                    <div class="layui-inline">&emsp;
                        <div class="layui-btn icon-btn" @click="seachs()">
                            <i class="layui-icon">&#xe615;</i>搜索
                        </div>&nbsp;
                    </div>
                </div>
            </form>
            <!-- 数据表格 -->
            <div id="authoritiesTable"></div>
        </div>
    </div>
    <div id="admins" style="display: none;padding-right: 20px;">
        <br>
        <form class="layui-form" action="">
            <div class="layui-row">
                <div class="layui-col-md8 layui-col-md-offset1">
                    <span style="color: red">正数为充值，负数为扣减</span>
                </div>
                <br>
                <div class="layui-col-md12">
                    <div class="layui-form-item">
                        <label class="layui-form-label">代币类型</label>
                        <div class="layui-input-block">
                            <input type="radio" name="MT" value="RMB" title="RMB" checked>
                            <input type="radio" name="MT" value="TOTAL" title="积分">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">金额</label>
                        <div class="layui-input-block">
                            <input type="number" min="0" v-model="money" placeholder="金额" autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div id="adminsyj" style="display: none;padding-right: 20px;">
        <br>
        <form class="layui-form" action="">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-form-item">
                        <label class="layui-form-label">金额</label>
                        <div class="layui-input-block">
                            <input type="number" min="0" v-model="money" placeholder="金额" autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div id="admins1" style="display: none;padding-right: 20px;">
        <table class="layui-table">
            <tr>
                <td>币种</td>
                <td>余额</td>
                <td>冻结</td>
            </tr>
            <tr v-for="(item,i) in blance">
                <td>{{item.type.display}}</td>
                <td>{{item.money}}</td>
                <td>{{item.frostMoney}}</td>
            </tr>
        </table>
    </div>
    <div id="admins3" style="display: none;padding-right: 20px;">
        <div>总业绩：{{permance.total}}</div>
        <table class="layui-table">
            <tr>
                <td>团队负责人</td>
                <td>团队业绩</td>
            </tr>
            <tr v-for="(item,i) in permance.list">
                <td>{{i}}</td>
                <td>{{item}}</td>
            </tr>
        </table>
    </div>
    <div id="admins4" style="display: none;padding-right: 20px;">
        <table class="layui-table">
            <tr>
                <td>账号</td>
                <td>收款人</td>
                <td>收款方式</td>
                <td>是否默认</td>
            </tr>
            <tr v-for="(item,i) in deposit">
                <td>{{item.no}}</td>
                <td>{{item.people}}</td>
                <td>{{item.type.display}}</td>
                <td v-if="item.isDefault==true">是</td>
                <td v-if="item.isDefault==false">否</td>
            </tr>
        </table>
    </div>
    <div id="admins5" style="display: none;padding-right: 20px;">
        <table class="layui-table">
            <tr>
                <td>地址</td>
                <td>电话</td>
                <td>收货人</td>
                <td>是否默认</td>
            </tr>
            <tr v-for="(item,i) in site">
                <td>{{item.site}}</td>
                <td>{{item.mobile}}</td>
                <td>{{item.people}}</td>
                <td v-if="item.isDefault==true">是</td>
                <td v-if="item.isDefault==false">否</td>
            </tr>
        </table>
    </div>
</div>
<script type="text/javascript" th:src="@{/js/require.js}"></script>
<script type="text/javascript" th:src="@{/js/requireConfig.js}"></script>
<script type="text/javascript" th:src="@{/app/admin/user/list.js}"></script>
</body>
</html>